package com.hbnu.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 来源单位/企业所在国家、省份、城市信息表
 * </p>
 *
 * @author jxl
 * @since 2025-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("project_source_unit")
@ApiModel(value="ProjectSourceUnit对象", description="来源单位/企业所在国家、省份、城市信息表")
public class ProjectSourceUnit implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "国内/外ID")
    @TableField("country_id")
    private Integer countryId;

    @ApiModelProperty(value = "国内/国外")
    @TableField("country_level")
    private String countryLevel;

    @ApiModelProperty(value = "省份ID（国内有效，国外为NULL）")
    @TableField("province_id")
    private Integer provinceId;

    @ApiModelProperty(value = "省份名称（国内有效）")
    @TableField("province_name")
    private String provinceName;

    @ApiModelProperty(value = "城市ID（国内有效，国外为NULL）")
    @TableField("city_id")
    private Integer cityId;

    @ApiModelProperty(value = "城市名称（国内有效）")
    @TableField("city_name")
    private String cityName;


}
